import wxpita

xml = """
<SizedFrame>
    <Button label="One" />
    <Button label="Two" />
    <Button label="Three" />

    <SizedPanel sizerType="horizontal" style="border_raised">
        <Button label="Four" />
        <Button label="Five" />
        <Button label="Six" />
    </SizedPanel>

    <SizedPanel sizerType="form">
        <StaticText label="Name" />
        <TextCtrl size="200, -1" value="Feihong Hsu" />
        
        <StaticText label="Status" />
        <Choice name="chc" choices="{'OK', 'Insane', 'Mental', 'Crazy'}" />
        
        <StaticText label="Checkin Date" />
        <DatePickerCtrl style="dp_dropdown" />
    </SizedPanel>
</SizedFrame>
"""

f = wxpita.fromxml(xml)

@f.Init
def _():
    f.chc.SetSelection(0)

f.Show('SizedFrame XML Example', size='fit')
